<template>
	<view>
		<text>爱好页面</text>
		<image v-for="item in imgArr" :src="item"></image>
		<button @click="uploadImg">上传图片</button>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				imgArr:[]
			}
		},
		methods:{
			uploadImg(){
					uni.chooseImage({
						count:5,
						success:res=>{
							console.log("上传成功",res)
							this.imgArr = res.tempFilePaths
						}
					})
			}		
		}
	}
</script>

<style>
</style>
